﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Everynet.Models;
using System.Net;
using System.Collections.Specialized;
using System.Text;
using System.Security.Cryptography;
using System.Web.Helpers;
using System.IO;
using System.Configuration;
using System.Xml;
using System.Security.Cryptography.X509Certificates;
using System.Data.Odbc;
using MySql.Data.MySqlClient;
using MySql.Data.Types;
using System.Data;
using System.Xml.Linq;

namespace Everynet.Controllers
{
    public class HomeController : Controller
    {
        private EverynetEntities db = new EverynetEntities();
        public ActionResult Index()
        {
            var model = new PlanModel();
            model.PlanTypeList = (from e in db.PlanTypes
                                  select e).ToList();
            model.PlanNameList = (from e in db.PlanNames
                                  select e).ToList();
            return View("Index", model);
        }

        public ActionResult News()
        {
            return View();
        }

        public ActionResult Signup()
        {
            var model = new PlanModel();
            model.PlanTypeList = (from e in db.PlanTypes
                                  select e).ToList();
            model.PlanNameList = (from e in db.PlanNames
                                  select e).ToList();
            return View("SelectPlan", model);
        }

      }
}
